<template>
    <div class="header-box">
       <div class="header-left">
         <div class="iconfont icon-left">&#xe624;</div>
      </div>
       <div class="header-input">
        <span class="iconfont icon-input">&#xe632;</span>输入城市游玩主题
      </div>
      <router-link to="/city">
       <div class="header-right">
        {{ city }}<span class="iconfont icon-right">&#xe600;</span>
      </div>
    </router-link>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }

}
</script>

<style lang="stylus"  scoped>
@import '~styles/varibles.styl';
 .header-box
   line-height: .86rem
   display: flex
   flex-direction: row
   background-color: $bgColor
   color:#fff
   .header-left
      width: .64rem
      .icon-left
        text-align: center
        font-size: .4rem
   .header-right
      width: 1.24rem
      text-align: center
      color: #fff
      .icon-right
        font-size: .3rem
    .header-input
      flex: 1
      border-radius: .1rem
      background: #fff
      margin:.12rem .2rem
      height: .64rem
      line-height 0.64rem
      color:#ccc
      padding-left:.2rem

</style>
